person_info = {
    "name": "Alex",
    "age": 30,
    "country": "USA",
    "language": ["English", "Spanish"],
    "is_student": False
}

print(person_info['name'])
person_info['age'] = 31
person_info['height'] = 175
del person_info['is_student']
# for i in person_info.values():
#     print(i)
# for i in person_info.keys():
#     print(i)


if 'email' not in person_info.keys():
    person_info['email'] = 'alex@example.com'

person_info['language'] = ['English']
print(person_info)
a = [person_info['language']]
for i in a:
    print(len(i))

person_info['language'].append('French')
print(person_info)

for j in range(1, 4):
    key = f'hobby{j}'
    values = f'hobby{j}'
    person_info[key] = values
print(person_info)